<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>JADEAST - 项目通知</title>
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
        }
        
        body {
            background-color: #f5f7fa;
            color: #333;
            line-height: 1.6;
            padding: 20px;
            max-width: 800px;
            margin: 0 auto;
        }
        
        .header {
            text-align: center;
            margin-bottom: 30px;
            padding: 20px 0;
            border-bottom: 1px solid #e1e5eb;
        }
        
        .logo {
            font-size: 32px;
            font-weight: bold;
            color: #2c5aa0;
            margin-bottom: 10px;
        }
        
        .description {
            font-size: 18px;
            margin-bottom: 20px;
            color: #555;
            text-align: center;
        }
        
        .ticket-table {
            width: 100%;
            border-collapse: collapse;
            background: white;
            border-radius: 8px;
            overflow: hidden;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
            margin-bottom: 30px;
        }
        
        .ticket-table tr {
            border-bottom: 1px solid #eef0f5;
        }
        
        .ticket-table tr:last-child {
            border-bottom: none;
        }
        
        .ticket-table td {
            padding: 15px 20px;
        }
        
        .ticket-table td:first-child {
            font-weight: 600;
            width: 30%;
            color: #555;
        }
        
        .ticket-table td:last-child {
            color: #333;
        }
        
        .action-area {
            text-align: center;
            padding: 20px;
            background: white;
            border-radius: 8px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
        }
        
        .btn {
            display: inline-block;
            padding: 12px 30px;
            background-color: #2c5aa0;
            color: white;
            text-decoration: none;
            border-radius: 4px;
            font-weight: 600;
            transition: all 0.3s ease;
        }
        
        .btn:hover {
            background-color: #1e3d6f;
            transform: translateY(-2px);
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        }
        
        .footer {
            text-align: center;
            margin-top: 30px;
            color: #888;
            font-size: 14px;
        }
        
        @media (max-width: 600px) {
            body {
                padding: 15px;
            }
            
            .ticket-table td {
                padding: 12px 15px;
                display: block;
                width: 100%;
            }
            
            .ticket-table td:first-child {
                width: 100%;
                padding-bottom: 5px;
                font-weight: 700;
                background-color: #f9fafc;
            }
            
            .ticket-table tr {
                border-bottom: 1px solid #eef0f5;
                display: block;
                margin-bottom: 10px;
                padding-bottom: 10px;
            }
        }
    </style>
</head>
<body>
    <div class="header">
        <div class="logo">JADEAST</div>
        <div class="description">{{ .Description }}</div>
    </div>
    
    <table class="ticket-table">
        <tr>
            <td>标题：</td>
            <td>{{ .Title }}</td>
        </tr>
        <tr>
            <td>申请人：</td>
            <td>{{ .Creator }}</td>
        </tr>
        <tr>
            <td>优先级：</td>
            <td>{{ .PriorityValue }}</td>
        </tr>
        <tr>
            <td>申请时间：</td>
            <td>{{ .CreatedAt }}</td>
        </tr>
    </table>
    
    <div class="action-area">
        <!-- 这里的连接迁移过去时替换成正确的域名 -->
        <a href="http://localhost:8002/#/process/handle-ticket?workOrderId={{ .Id }}&processId={{ .ProcessId }}" class="btn">点击此处跳转到项目详情</a>
    </div>
    
    <div class="footer">
        <p>此邮件由系统自动发送，请勿直接回复</p>
    </div>
</body>
</html>